﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="KhachHangManagerForm.aspx.cs" Inherits="WebShoes.Admin.KhachHangListForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">    
    <h3 class="panel-title">
    <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
    <b>Danh Sách Khách Hàng</b>
    </h3>
    </div>
<div class="panel-body">

    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">Dữ liệu cần tìm</label>
        <div class="col-sm-4">
            <asp:TextBox ID="txtNhap" runat="server" placeholder="Nhập dữ liệu cần tìm" CssClass="form-control"></asp:TextBox>
            
        </div>
        <div class="col-sm-4">
            <asp:DropDownList ID="ddlChon" runat="server" CssClass="form-control">
                <asp:ListItem Value="0">--Chọn loại dữ liệu tìm kiếm--</asp:ListItem>
                <asp:ListItem Value="1">Mã Khách Hàng</asp:ListItem>
                <asp:ListItem Value="2">Tên Khách Hàng</asp:ListItem>
            </asp:DropDownList>
        </div>
        
        <div class="col-sm-2">
        <asp:LinkButton ID="btnTimKiem" runat="server" CssClass="btn btn-primary" 
                onclick="btnTimKiem_Click">
                <span class="glyphicon glyphicon-search" aria-hidden="true"></span>Tìm Kiếm</asp:LinkButton>
        </div>
    </div>    
    </br></br>
    <b><asp:Label ID="lblThongBao" runat="server" ForeColor="Red"></asp:Label></b>
    <asp:GridView ID="GridView1" runat="server" CssClass="table table-hover" 
        AutoGenerateColumns="False" BorderStyle="None" GridLines="None" 
        HorizontalAlign="Center" onpageindexchanging="GridView1_PageIndexChanging" AllowPaging="True">
        <Columns>
            <asp:BoundField DataField="MaKhachHang" HeaderText="Mã" />
            <asp:BoundField DataField="HoTenKhachHang" HeaderText="Họ Tên" />
            <asp:BoundField DataField="Email" HeaderText="Email" />
            <asp:BoundField DataField="DienThoai" HeaderText="Điện Thoại" />
            <asp:TemplateField HeaderText="#">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "KhachHangInfoForm.aspx?MaKhachHang=" +Eval("MaKhachHang")%>' CssClass="btn btn-info">
                    <span class="glyphicon glyphicon-pushpin" aria-hidden="true"></span> Xem chi tiết</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    <PagerStyle CssClass="~/css/style.css pagination-ys" />

    </asp:GridView>

</div>

</asp:Content>
